package com.qf.jie.entity.po;

public class Commodity {
    private Integer id;
    private String name;
    private String img_url;
    private Integer stock;
    private Double price;
    private Integer user_id;

    public Commodity(){}
    public Commodity(Integer id, String name, String img_url, Integer stock, Double price, Integer user_id) {
        this.id = id;
        this.name = name;
        this.img_url = img_url;
        this.stock = stock;
        this.price = price;
        this.user_id = user_id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImg_url() {
        return img_url;
    }

    public void setImg_url(String img_url) {
        this.img_url = img_url;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", img_url='" + img_url + '\'' +
                ", stock=" + stock +
                ", price=" + price +
                ", user_id='" + user_id + '\'' +
                '}';
    }
}
